package com.lanchetech.dao;
import java.util.List;

import com.lanchetech.bean.request.PageReq;
import org.apache.ibatis.annotations.Param;

import com.lanchetech.entity.Honor;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface HonorMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Honor record);

    int insertSelective(Honor record);

    Honor selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Honor record);

    int updateByPrimaryKey(Honor record);

    Honor findOneByUserIdAndContentAndType(@Param("userId")Long userId,@Param("content")String content,@Param("type")Byte type);

    List<Honor> findAllPage(PageReq req);


}